<!DOCTYPE html>
<html>
<head>
    <title>test</title>
    <meta charset="UTF-8">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
</head>
<script src="http://apps.bdimg.com/libs/angular.js/1.3.9/angular.min.js"></script>
<body>

<div ng-app="myApp" ng-controller="customersCtrl">

    <ul>
        <li >
            {{name}}
        </li>
    </ul>

</div>

<script>
    var app = angular.module('myApp', []);
    app.controller('customersCtrl', function($scope, $http) {
//        $http.get("http://localhost:8080/idanda/user/name")
        $http({method: 'GET', dataType:'JSONP', url: 'http://localhost:8080/idanda/user/name'})
        .success(function(data){console.log(data);});

        // $http({method: 'GET', url: '/lis'}).
//function (response) {$scope.names = response.records;}
    });
</script>

</body>
</html>